import { Component, ChangeDetectionStrategy } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  templateUrl: './demo6.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
  styles: [
    `
      .tab-header {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .tab-header > i {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        color: #3399ff;
      }
    `,
  ],
})
export class Demo6Component {
  activeIndex = 0;
  tabDisabled = true;
  icon = 'icon-copy';

  constructor(public router: Router) {}

  enable() {
    this.tabDisabled = false;
    this.icon = 'lv-icon-status-succeed';
  }
}
